﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Observer
{
    class Client
    {
        public void ClientProcess()
        {
            BillingService billing = new BillingService();
            ChineseFood food = new ChineseFood("Chicke ");

            // Register the observer
            food.ServeEvent += new ChineseFood.ServeHandler(billing.Update);

            // Ready to server the food and it will notify the observers
            food.Serve();
        }
    }
}
